﻿/// <reference path="../jquery-1.5.1-vsdoc.js" />
/// <reference path="../jquery-ui-1.8.11.js" />


function onClickItem(tieude, kinhdo, vido) {
    $("#dialog img").attr("src", "");
    $("#dialog").dialog('option', 'title', tieude);
    var lattitude = 10.76272;
    var longtitude = 106.6825;
    var src = "http://maps.googleapis.com/maps/api/staticmap?center=" + kinhdo + "," + vido +
    "&zoom=11&size=512x512&maptype=roadmap&markers=color:blue%7Clabel:S%7C" + lattitude +
     "," +vido + "&markers=color:green%7Clabel:Y%7C{2},{3}&sensor=false";
    $("#dialog img").attr("src", src);
    $("#dialog").dialog("open");
}

$("#dialog").dialog({
    autoOpen: false,
    modal: true,
    width: "auto",
    position: "center",
    show: "clip"
});